package com.xxgc.cloud.auth.springcloudauth.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户
 * </p>
 *
 * @author Mr.Abel
 * @since 2022-12-08
 */
@Getter
@Setter
  @ApiModel(value = "Users对象", description = "用户")
public class Users implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("id")
        @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("用户名")
      private String userName;

      @ApiModelProperty("密码")
      private String userPass;

      @ApiModelProperty("盐值")
      private String salt;

      @ApiModelProperty("昵称")
      private String nickName;

      @ApiModelProperty("头像")
      private String headPortrait;

      @ApiModelProperty("电话")
      private String phoneNumber;

      @ApiModelProperty("有效列")
      private Boolean flag;

      @ApiModelProperty("最后登录时间")
      private LocalDateTime lastTime;

      @ApiModelProperty("锁定状态 1是false 0是true")
      private Boolean locking;

      @ApiModelProperty("创建时间")
        @TableField(fill = FieldFill.INSERT)
      private LocalDateTime createTime;

      @ApiModelProperty("更新时间")
        @TableField(fill = FieldFill.INSERT_UPDATE)
      private LocalDateTime updateTime;

      @ApiModelProperty("备注")
      private String remarks;


}
